import React from 'react';
import Helmet from 'react-helmet';
import {setScrollTop,goSystem} from '../../../assets/js/utils'


class froms extends React.Component{
    constructor(){
        super();
        this.state={
            title:'企业免费试用-中智关爱通',
            keywords:'企业福利,员工礼品,弹性福利平台,员工福利解决方案',
            description:'关爱通为企业提供完整员工福利解决方案、节日福利、员工礼品、员工激励、员工体检，以及企业弹性福利平台定制。',
        }
    }
    componentDidMount(){
        this.goSystem();
        setScrollTop(window.base.pages.index.iScrollTop);
    }
    //判断跳转平台
    goSystem(){
        goSystem(this.props,'from')
    }
    //页面离开时调用，页面离开时去除滚动事件解决页面切换时内存泄漏，
    componentWillUnmount(){
        window.removeEventListener('scroll',setScrollTop());
        this.setState=(state,callback)=>{
            return;
        }
    }
    render(){
        return(
            <div>
                <Helmet>
                    <title>{this.state.title}</title>
                    <meta name="keywords" content={this.state.keywords} />
                    <meta name="description" content={this.state.description} />
                </Helmet>
                移动from
            </div>
        )
    }
}
export default froms